import PageLayout from "../../layout/PageLayout.vue";

export default {
  path: "/task",
  name: "task",
  component: PageLayout,
  meta: { title: "任务管理", root: true },
  children: [
    {
      path: "list",
      name: "task-list",
      component: () => import("../../views/task/TaskList.vue"),
      meta: {
        title: "任务管理",
        buttons: [
          {
            name: "task-list:create",
            meta: {
              title: "添加",
            },
          },
          {
            name: "task-list:edit",
            meta: {
              title: "编辑",
            },
          },
          {
            name: "task-list:delete",
            meta: {
              title: "删除",
            },
          },
          {
            name: "task-list:copy",
            meta: {
              title: "复制",
            },
          },
          {
            name: "task-list:active",
            meta: {
              title: "激活",
            },
          },
          {
            name: "task-list:pause",
            meta: {
              title: "暂停",
            },
          },
          {
            name: "task-list:continue",
            meta: {
              title: "继续",
            },
          },
        ],
      },
    },
  ],
};
